package cn.rkylin.oms.base.resendReasonType.vo;

import cn.rkylin.oms.base.resendReasonType.domain.ResendReason;

/**
 * Created by Administrator on 2018-3-21.
 */
public class ResendReasonVO extends ResendReason{
    // 排序
    private String orderBy;
    private String operation;
    private static final String OPERATION_BTN_EDIT = "<button onclick=\"operationEdit(this)\" resendReasonId=\"%s\" type=\"button\" class=\"btn btn-info btn-xs\" pepid=\"operationEdit\"><i class=\"fa fa-edit\" ></i>&nbsp;修改</button>";
    private static final String OPERATION_BTN_DELETE = "<button onclick=\"operationDelete(this)\" resendReasonId=\"%s\" type=\"button\" class=\"btn btn-danger btn-xs\" pepid=\"operationDelete\"><i class=\"fa fa-trash-o\"></i>&nbsp;删除</button>";

    public String getOperation() {
        StringBuffer opButton = new StringBuffer();

        opButton.append(String.format(OPERATION_BTN_EDIT, getResendReasonId()));
        opButton.append("&nbsp;");
        opButton.append(String.format(OPERATION_BTN_DELETE, getResendReasonId()));

        return opButton.toString();
    }

    public void setOperation(String operation) {
        this.operation = operation;
    }

    public String getOrderBy() {
        return orderBy;
    }

    public void setOrderBy(String orderBy) {
        this.orderBy = orderBy;
    }
}
